<!DOCTYPE html>
<html>
<head>
    <title></title>
    <#include "/sys/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList && !showRefundCash">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.userId" @on-enter="query" placeholder="用户id"/>
                </i-col>
                <i-col span="4">
                    <Date-picker v-model="q.cTime" format="yyyy-MM-dd" placeholder="提现申请日期"></Date-picker>
                </i-col>
                <i-button @click="query">查询</i-button>
            </div>
            <div class="buttons-group">
<!--                <i-button type="primary" @click="exportUserRecordCash"><i class="fa fa-pencil-square-o"></i>&nbsp;认证</i-button>-->
                <i-button type="warning" @click="clickRefundCash"><i class="fa fa-plus"></i>&nbsp;驳回</i-button>
                <i-button type="info" @click="exportUserRecordCash"><i class="fa fa-cloud-download"></i>&nbsp;导出</i-button>
            </div>
        </Row>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <Card v-show="showRefundCash">
        <p slot="title">请填写驳回理由</p>
        <i-form ref="formValidateRefundCash" :model="userRecordRefundCash" :rules="ruleValidateRefundCash" :label-width="80">
            <Form-item label="会员id" prop="userId">
                <i-input v-model="userRecordRefundCash.userId" readonly/>
            </Form-item>
            <Form-item label="会员名称" prop="userName">
                <i-input v-model="userRecordRefundCash.userName" readonly/>
            </Form-item>
            <Form-item label="提现金额" prop="price">
                <i-input type="number" v-model="userRecordRefundCash.price" readonly/>
            </Form-item>
            <Form-item label="证件号码" prop="idCard">
                <i-input v-model="userRecordRefundCash.idCard" readonly/>
            </Form-item>
            <Form-item label="银行卡号" prop="bankCard">
                <i-input v-model="userRecordRefundCash.bankCard" readonly/>
            </Form-item>
            <Form-item label="手机号" prop="mobile">
                <i-input v-model="userRecordRefundCash.mobile" readonly/>
            </Form-item>
            <Form-item label="驳回理由" prop="reason">
                <i-input type="text" v-model="userRecordRefundCash.reason" placeholder="请填写驳回理由"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmitRefundCash('formValidateRefundCash')">提交</i-button>
                <i-button type="warning" @click="reloadRefundCash" style="margin-left: 8px">返回</i-button>
            </Form-item>
        </i-form>
    </Card>

</div>

<script src="${rc.contextPath}/static/js/shop/userRecordCash.js?_${.now?long}"></script>
</body>
</html>
